﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Index
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Payment Selection</h2>
         <% using (Html.BeginForm()){%>
    <div>
        Member Points <input type="radio" name="PaymentSelection" value="MemberPayment" />
        Credit Card <input type="radio" name="PaymentSelection" value="CardPayment" />
    </div>
     <% } %>
    <script type="text/javascript">
        $(function () {
            $(':radio[name="PaymentSelection"]').change(function () {
                location.href = "/Payment/" + this.value;
                //                $("form").attr("action", "/Payment/" + this.value).submit();
                //                return false;
            });
        });
</script>
</asp:Content>
